package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Guard;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GuardMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Guard entity);

    Guard selectByPrimaryKey(Long id);

    List<Guard> selectAll();

    int updateState(@Param("state")Integer state, @Param("id")Long id);

    int query4Count(QueryObject qo);

    List<Guard> query4List(QueryObject qo);

    void updateByPrimaryKey(Guard entity);

    void updateAudit(Guard guard);

    Guard selectByNum(String num);

    void updateOvertime(Guard guard);

    Long selectIdByGuardNum(String guardNum);
}